// const Koarouter = require('@koa/router')
const router = require('koa-router')()
const controllers = require('../controllers/index')
// const router = new Koarouter()
const jwt = require('../utils/jwt')


router.post('/login', controllers.login)
router.post('/create', controllers.create)
router.get('/getArticles', controllers.getArticles)
router.post('/getContent', controllers.getContent)
router.post('/deleteArticle', controllers.deleteArticle)
router.post('/dianzan', controllers.dianzan)
router.post('/publishComments', controllers.publishComments)

module.exports = router


